package cn.truistic.enmicromsg.bean;

import org.litepal.crud.DataSupport;

import java.io.Serializable;

import cn.truistic.enmicromsg.common.util.PreferenceHelper;

/**
 * Created by admin on 2018/6/8.
 */

public class Contact extends DataSupport implements Serializable {

    private String Alias = "";
    private String NickName = "";
    private String type = "";
    private String RemarkName = "";
    private String wxid = "";
    private String City = "";
    private String HeadImgUrl = "";
    private String Sex = "0";
    private String Province = "";
    private String Signature = "";
    private String wxCode = PreferenceHelper.getString("userName", "");


    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"Alias\":\"")
                .append(Alias).append('\"');
        sb.append(",\"NickName\":\"")
                .append(NickName).append('\"');
        sb.append(",\"type\":\"")
                .append(type).append('\"');
        sb.append(",\"RemarkName\":\"")
                .append(RemarkName).append('\"');
        sb.append(",\"wxid\":\"")
                .append(wxid).append('\"');
        sb.append(",\"City\":\"")
                .append(City).append('\"');
        sb.append(",\"HeadImgUrl\":\"")
                .append(HeadImgUrl).append('\"');
        sb.append(",\"Sex\":\"")
                .append(Sex).append('\"');
        sb.append(",\"Province\":\"")
                .append(Province).append('\"');
        sb.append(",\"Signature\":\"")
                .append(Signature).append('\"');
        sb.append(",\"wxCode\":\"")
                .append(wxCode).append('\"');
        sb.append('}');
        return sb.toString();
    }

    public String getAlias() {
        return Alias;
    }

    public void setAlias(String alias) {
        Alias = alias;
    }

    public String getNickName() {
        return NickName;
    }

    public void setNickName(String nickName) {
        NickName = nickName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRemarkName() {
        return RemarkName;
    }

    public void setRemarkName(String remarkName) {
        RemarkName = remarkName;
    }

    public String getWxid() {
        return wxid;
    }

    public void setWxid(String wxid) {
        this.wxid = wxid;
    }

    public String getCity() {
        return City;
    }

    public void setCity(String city) {
        City = city;
    }

    public String getHeadImgUrl() {
        return HeadImgUrl;
    }

    public void setHeadImgUrl(String headImgUrl) {
        HeadImgUrl = headImgUrl;
    }

    public String getSex() {
        return Sex;
    }

    public void setSex(String sex) {
        Sex = sex;
    }

    public String getProvince() {
        return Province;
    }

    public void setProvince(String province) {
        Province = province;
    }

    public String getSignature() {
        return Signature;
    }

    public void setSignature(String signature) {
        Signature = signature;
    }

    public String getWxCode() {
        return wxCode;
    }

    public void setWxCode(String wxCode) {
        this.wxCode = wxCode;
    }
}
